﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using KDS.Mes.Mes.AlcCodes;
using KDS.Mes.Mes.Lines;
using KDS.Mes.Mes.SeatPositions;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KDS.Mes.Mes.Onlines
{
    /// <summary>
    /// 上线信息
    /// </summary>
    [Table("T_Online")]
    public class Online : Entity
    {
        [ForeignKey("LineId")]
        public virtual Line Line { get; set; }

        /// <summary>
        /// 所属ALCCode
        /// </summary>
        public virtual int LineId { get; set; }


        /// <summary>
        /// 座椅条码
        /// </summary>
        [MaxLength(50)]
        public string SeatID { get; set; }

        /// <summary>
        /// 上线时间
        /// </summary>
        public DateTime? OnlineTime { get; set; }

        /// <summary>
        /// 下线时间
        /// </summary>
        public DateTime? OfflineTime { get; set; }

        /// <summary>
        /// 工作时长
        /// </summary>
        [MaxLength(20)]
        public string WorkTime { get; set; }

        /// <summary>
        /// 下线标记
        /// </summary>
        public int? OfflineFlag { get; set; }

        /// <summary>
        /// 靠背分总成零件号
        /// </summary>
        [MaxLength(50)]
        public string BackrestAssemblyNo { get; set; }

        /// <summary>
        /// 座垫分总成零件号
        /// </summary>
        [MaxLength(50)]
        public string CushionAssemblyNo { get; set; }

        /// <summary>
        /// 滑道零件号
        /// </summary>
        [MaxLength(50)]
        public string SlideNo { get; set; }

        /// <summary>
        /// 靠背蒙皮零件号
        /// </summary>
        [MaxLength(50)]
        public string BackrestCoverNo { get; set; }

        /// <summary>
        /// 座垫蒙皮零件号
        /// </summary>
        [MaxLength(50)]
        public string CushionCoverNo { get; set; }

        /// <summary>
        /// 靠背发泡零件号
        /// </summary>
        [MaxLength(50)]
        public string BackrestFoamNo { get; set; }

        /// <summary>
        /// 座垫发泡零件号
        /// </summary>
        [MaxLength(50)]
        public string CushionFoamNo { get; set; }

        /// <summary>
        /// 背骨架零件号
        /// </summary>
        [MaxLength(50)]
        public string BackFrameNo { get; set; }

        /// <summary>
        /// SAB零件号
        /// </summary>
        [MaxLength(50)]
        public string SABNo { get; set; }

        /// <summary>
        /// 头枕零件号
        /// </summary>
        [MaxLength(50)]
        public string HeadrestNo { get; set; }

        /// <summary>
        /// 头枕1零件号
        /// </summary>
        [MaxLength(50)]
        public string HeadrestNo1 { get; set; }

        /// <summary>
        /// 中央头枕零件号
        /// </summary>
        [MaxLength(50)]
        public string CenterHeadrestNo { get; set; }

        /// <summary>
        /// 手扶枕零件号
        /// </summary>
        [MaxLength(50)]
        public string ArmRestNo { get; set; }

        /// <summary>
        /// 安全带锁扣零件号
        /// </summary>
        [MaxLength(50)]
        public string BuckleNo { get; set; }

        [MaxLength(50)]
        public string SittingBasinNo { get; set; }

        /// <summary>
        /// 背板零件号
        /// </summary>
        [MaxLength(50)]
        public string BackplaneNo { get; set; }

        /// <summary>
        /// 调角器零件号
        /// </summary>
        [MaxLength(50)]
        public string AdjusterNo { get; set; }

        /// <summary>
        /// 调角器护板零件号
        /// </summary>
        [MaxLength(50)]
        public string AdjusterPlateNo { get; set; }

        /// <summary>
        /// 座垫支架零件号
        /// </summary>
        [MaxLength(50)]
        public string CushioSsupportNo { get; set; }
    }
}